package com.lzy.mapper;

import com.lzy.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-05-06
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 根据角色查询菜单
     * @param role 角色ID
     * @return 菜单列表
     */
    List<Menu> selectMenusByRole(@Param("role") Integer role);
} 